package cn.kgc.javaweb.dao;

import cn.kgc.javaweb.entity.Role;

import java.sql.SQLException;
import java.util.List;

/**
 * @Author: 课工场
 * @Version: v1.0  2023/5/23
 * @Description:
 */
public interface RoleDao {
    List<Role> getList() throws SQLException;

    List<Role> getPage(Integer start, int limte);

    Long getTotal();

    void insertRole(String roleName) throws SQLException;

    Role getById(Integer id);

    void updateById(String roleName, Integer id) throws SQLException;

    void deleteById(Integer id) throws SQLException;
}
